package com.lcredu.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcredu.seckill.pojo.User;
import com.lcredu.seckill.util.response.RespBean;
import com.lcredu.seckill.vo.LoginVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 黎长容
 * @date 2025-08-23 19:14
 */
public interface UserService extends IService<User> {
    public RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    //    根据id在redis中查找用户
    public User getUser(String userTicket, HttpServletRequest request, HttpServletResponse response);

    //退出登录
    void loginOutUser(Long userId, HttpServletRequest request, HttpServletResponse response);

    //修改密码
    RespBean updateUserPassword(String ticket, String password, HttpServletRequest request, HttpServletResponse response);
}
